package com.lcredu.aop.aspectj;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author 黎长容
 * @date 2025-07-15 17:56
 */
public class CarTest {
    public static void main(String[] args) {
        ApplicationContext ioc
                = new ClassPathXmlApplicationContext("beans08.xml");

        //cglib的动态代理对象
        //class com.lcredu.aop.aspectj.Car$$EnhancerBySpringCGLIB$$3e3cdf47
        Car bean = ioc.getBean(Car.class);
        bean.run();
        System.out.println(bean.getClass());

    }
}
